package org.jeecg.modules.permission.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.permission.mapper.TestUserMapper;
import org.jeecg.modules.permission.service.ITestMultiDataSource;
import org.jeecg.modules.permission.vo.TestUserPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("slave1")
public class TestMultiDataSource implements ITestMultiDataSource {

    @Autowired
    private TestUserMapper testUserMapper;


    @Override
    public List<TestUserPage> searchAll() {
        return testUserMapper.searchAll();
    }
}
